package cn.bone.web.system.dao.impl;

import cn.bone.web.system.bean.SystemMember;
import cn.bone.web.system.dao.IMemberDao;
import org.mongodb.morphia.Datastore;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * Created by superbone on 2017/4/19.
 */
@Repository
public class MemberDaoImpl implements IMemberDao{

    @Resource
    private Datastore datastore;
    @Override
    public void save(SystemMember member) {
        datastore.save(member);
    }

    @Override
    public void delete(SystemMember member) {
        datastore.delete(member);
    }
}
